package com.tledu.dao.impl;

import com.tledu.dao.IUserDao;
import com.tledu.domain.User;
import org.springframework.stereotype.Repository;

/**
 * @author cyrus
 */
@Repository
public class UserDaoImpl implements IUserDao {
    @Override
    public User selectById() {
        System.out.println("select User by id");
//        throw new RuntimeException("我错了...");
        return new User("天亮教育");
    }

    @Override
    public User selectByUsername(String username) {
        System.out.println("select User by username");
//        throw new RuntimeException("我错了...");
        return null;
    }
}
